home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SGI Hot Mix 17
/
Hot Mix 17.iso
/
HM17_SGI
/
html
/
vendors
/
cocreate
/
fixem
< prev
next >
Wrap
Text File
|
1997-06-17
|
295b
|
15 lines
#!/bin/perl
$file = shift(@ARGV);
`cp $file file.bak`;
open(OLDFILE, "file.bak") || die "Couldn't open file.bak\n";
open(NEWFILE, "> $file") || die "Couldn't open $file\n";
while(<OLDFILE>){
if (/(.*)_top(.*)/){
print NEWFILE "${1}right$2\n";
}
elsif (/(.*)/){
print NEWFILE "$1\n";
}
}